// pages/index/footer.js
Component({
    properties: {
        footerid: {
            type: Number,
            value: 1
        },
    },

    /**
     * 组件的方法列表
     */
    methods: {
        showModal(e) {
            this.setData({
                modalName: e.currentTarget.dataset.target
            })
        },
        hideModal(e) {
            this.setData({
                modalName: null
            })
        },
        hqopen(e) {
            let url = e.currentTarget.dataset.url;
            wx.redirectTo({ url: url });
        }
    },
})